package ch4;

import java.util.Scanner;

public class Changfangxing {

	public static void main(String[] args) {
		// 输入长和宽，用* 打印一个长方形
		Scanner in = new Scanner(System.in);
		System.out.println("请输入长：");
		int w = in.nextInt();
		System.out.println("再输入宽：");
		int h = in.nextInt();
		// 不考虑w和h合法性的问题
		for (int i = 1; i <= h; i++) {
			for (int j = 1; j <= w; j++) {
				System.out.print("*");
			}
			System.out.println();
		}
	}
}
